package com.javaweb.admin.service;

import com.javaweb.admin.entity.ReturnOrder;
import com.javaweb.admin.entity.SOResaleInvoice;
import com.javaweb.admin.vo.returnorder.OrderReturnDto;
import com.javaweb.common.common.BaseQuery;
import com.javaweb.common.common.IBaseService;
import com.javaweb.common.utils.JsonResult;

import java.math.BigDecimal;

public interface IReturnOrderService extends IBaseService<ReturnOrder> {
    JsonResult getReturnOrderList(BaseQuery query);

    JsonResult getReturnSaleOrderList(BaseQuery query);
    JsonResult getSecondSaleList(BaseQuery query);
    JsonResult getSecondSaleStockList(BaseQuery query);
    JsonResult getSecondSaleGroupStockList(BaseQuery query);

    JsonResult getOrderDetail(String cgeneralhid);
    JsonResult getSaleOrderDetail(String csaleorderid);

    JsonResult getOrderInvoiceDetail(String csaleorderid);

    JsonResult getStoreList();

    JsonResult getSSBKList();

    JsonResult getOrderCheckDetail(String csaleorderid);
    JsonResult getSaleOrderCheckDetail(String csaleorderid);

    JsonResult saveOrderReturn(OrderReturnDto returnDto);
    JsonResult saveSaleOrderReturn(OrderReturnDto returnDto);

    JsonResult saveResaleInvoice(SOResaleInvoice[] resaleInvoices);
    JsonResult getResaleList(String csaleorderbid);

    JsonResult getInstockCheckList(String csaleinvoicebid);
    JsonResult getSecondSaleInvoiceList(BaseQuery query);

    JsonResult delResaleInvoice(String cgeneralbid);

    JsonResult delResaleInstock(String csaleinvoicebid,String cgeneralbid);

}
